<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
    <link rel="stylesheet" type="text/css" th:href="@{{path}/common/v3/summernote/summernote-bs3.css?v={v}((path=${staticPath},v=${v})}">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInLeft">
        <div data-th-replace="common/functionDepict"></div>
        <div>
            <div class="row">
                <!--第一步 开始-->
                <div class="pt10">
                    <div class="col-sm-9">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>填写基本信息</h5>
                            </div>
                            <div class="ibox-content clearfix pt10">
                                <div class="form-horizontal">
                                    <form id="afficheCreateFrom">
                                        <div class="form-group ">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 消息内容</label>
                                            <div class="col-sm-10">
                                                <!--<div id="afficheCreate" style="width: 100%"></div>-->
                                                <textarea id="affiche-create" name="context" class="hide"></textarea>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed article"></div>
                                        <div class="form-group">
                                            <input id="selectCourseIds"  name="courseIds" type="hidden" value=""/>
                                            <input type="hidden" name="subjectIds" id="subjectIds" value=""/>
                                            <label class="col-sm-2 control-label">限定专业</label>
                                            <div class="col-sm-8">
                                                <div id="affiche-subject-box"></div>
                                                <div id="affiche-subject-context"></div>
                                                <span class="help-block m-b-none c-999">选择所属专业项目或新建</span>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <label class="col-sm-2 control-label text-right"> 限定课程</label>
                                            <div class="col-sm-9">
                                                <p>
                                                    <input type="hidden" id="courseIds"  name="courseIds" value=""/>
                                                    <button class="btn btn-primary " id="selectCourse" type="button"><i class="fa fa-plus"></i> &nbsp;选择课程</button>
                                                </p>
                                                <div class="pt10 hide" id="course-content-table-hd">
                                                    <table class="table table-bordered table-hover">
                                                        <thead>
                                                        <tr>
                                                            <th class="text-center">ID</th>
                                                            <th>课程名称</th>
                                                            <th>专业/科目</th>
                                                            <th>价格</th>
                                                            <th class="text-center">操作</th>
                                                        </tr>
                                                        </thead>
                                                        <tbody id="course-content"></tbody>
                                                    </table>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="hr-line-dashed"></div>
                                        <div class="form-group">
                                            <div class="col-sm-10 col-sm-offset-2">
                                                <button class="btn btn-primary ml10" id="submitAffiche" type="button">发布</button>
                                                <button class="btn btn-white ml10" type="button" id="onBack">取消</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div data-th-replace="common/importantNotes"></div>
                </div>
                <!--第一步 结束-->
            </div>
        </div>
    </div>
    <div data-th-replace="layout/head-footer"></div>
    <script type="text/javascript" th:src="@{{path}/common/summernote/summernote.min.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/common/summernote/summernote-zh-CN.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/business/upload/common-webuploader.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/business/course/cou/select-common-course.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/libs/plugins/layer/laydate/laydate.js?v={v}(path=${staticPath},v=${v})}"></script>
    <script type="text/javascript" th:src="@{{path}/admin/business/op/affiche/affiche-create.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>
